<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Template for Mage_Page_Block_Html
 */

$head = $this->getChild('head');

?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title><?php echo $head->getTitle(); ?></title>
    <script src="<?php echo $this->getSkinurl('js/jquery-1.10.2.min.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/flexslider.min.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/layer/layer.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/cloud-zoom.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/lazyload.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/main.js'); ?>"></script>
    <script src="<?php echo $this->getSkinurl('js/addtocart.js'); ?>"></script>

    <link rel="stylesheet" href="<?php echo $this->getSkinurl('css/style.css'); ?>"/>
    <link rel="stylesheet" href="<?php echo $this->getSkinurl('css/flexslider.css'); ?>"/>
</head>
<body<?php echo $this->getBodyClass()?' class="'.$this->getBodyClass().'"':'' ?>>
<div class="wrapper">
    <?php echo $this->getChildHtml('global_notices') ?>
    <div class="page">
        <?php echo $this->getChildHtml('head') ?>
        <div class="main-container col1-layout">
        <?php echo $this->getChildHtml('breadcrumbs') ?>
            <div class="main">

                <div class="col-main">
                    <?php echo $this->getChildHtml('global_messages') ?>
                    <?php if(false && trim($this->getBodyClass())=='cms-index-index' && Mage::getSingleton('customer/session')->isLoggedIn()):?>
                    <?php
                        //首页进行缓存
                        $cacheKey = 'QSLB_WEB_HOME_' . Mage::app()->getStore()->getId();
                        $cache = Mage::app()->getCache();
                        $data = $cache->load($cacheKey);
                        if ($data) echo $data;
                        $data = $this->getChildHtml('content');
                        $cache->save($data, $cacheKey, array('QSLB_WEB'), 3600);
                        //echo $data;
                    ?>
                    <?php else:?>
                    <?php echo $this->getChildHtml('content') ?>
                    <?php endif;?>
                </div>
            </div>
        </div>
        <?php echo $this->getChildHtml('footer') ?>
        <?php echo $this->getChildHtml('global_cookie_notice') ?>
    </div>
</div>
<?php echo $this->getAbsoluteFooter() ?>
</body>
</html>
